From: Carsten Schoenert Date: Thu, 13 Oct 2016 19:08:18 +0000 (+0200) Subject: doc: Add field 'revdate' to asciidoc files X-Git-Tag: archive/raspbian/9.0.7+dfsg-1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=0f477dc450c9340173827c7b32d34b906e451de7;p=kicad.git doc: Add field 'revdate' to asciidoc files For reproducibility we need to set up a date that's not depending on the current time and timezone. We add a extra asciidoc control field 'revdate' and expand the variable behind that while building the package with the date from the changelog file. Note! Unfortunately using the modified files in the way it's originally intended breaks the build of the source by using dpkg-buildpackage twice in a row. Until this issue is solved the added fields are now commented out. Forwarded: Not-Needed Gbp-Pq: Topic reproducibility Gbp-Pq: Name doc-Add-field-revdate-to-asciidoc-files.patch --- diff --git a/doc/src/doc_writing_style_policy/doc_writing_style_policy.adoc b/doc/src/doc_writing_style_policy/doc_writing_style_policy.adoc index c852dc70..7bbad399 100644 --- a/doc/src/doc_writing_style_policy/doc_writing_style_policy.adoc +++ b/doc/src/doc_writing_style_policy/doc_writing_style_policy.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: article +//:revdate: @REVDATE@ :toc: :ascii-ids: diff --git a/doc/src/eeschema/eeschema.adoc b/doc/src/eeschema/eeschema.adoc index 90d6e167..cbcab20f 100644 --- a/doc/src/eeschema/eeschema.adoc +++ b/doc/src/eeschema/eeschema.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: book +//:revdate: @REVDATE@ :toc: :ascii-ids: :experimental: diff --git a/doc/src/gerbview/gerbview.adoc b/doc/src/gerbview/gerbview.adoc index 86ffba21..168c3e8d 100644 --- a/doc/src/gerbview/gerbview.adoc +++ b/doc/src/gerbview/gerbview.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: article +//:revdate: @REVDATE@ :toc: :ascii-ids: diff --git a/doc/src/getting_started_in_kicad/getting_started_in_kicad.adoc b/doc/src/getting_started_in_kicad/getting_started_in_kicad.adoc index 671584d0..6f1c13f1 100644 --- a/doc/src/getting_started_in_kicad/getting_started_in_kicad.adoc +++ b/doc/src/getting_started_in_kicad/getting_started_in_kicad.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: book +//:revdate: @REVDATE@ :toc: :ascii-ids: :experimental: diff --git a/doc/src/kicad/kicad.adoc b/doc/src/kicad/kicad.adoc index a8fec25a..17fb51dc 100644 --- a/doc/src/kicad/kicad.adoc +++ b/doc/src/kicad/kicad.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: book +//:revdate: @REVDATE@ :toc: :ascii-ids: :experimental: diff --git a/doc/src/pcbnew/pcbnew.adoc b/doc/src/pcbnew/pcbnew.adoc index bce60da2..aea10ca4 100644 --- a/doc/src/pcbnew/pcbnew.adoc +++ b/doc/src/pcbnew/pcbnew.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: book +//:revdate: @REVDATE@ :toc: :ascii-ids: :figure-caption!: diff --git a/doc/src/pl_editor/pl_editor.adoc b/doc/src/pl_editor/pl_editor.adoc index 3042e7f2..e62f2ed0 100644 --- a/doc/src/pl_editor/pl_editor.adoc +++ b/doc/src/pl_editor/pl_editor.adoc @@ -1,5 +1,6 @@ :author: The KiCad Team :doctype: article +//:revdate: @REVDATE@ :toc: :ascii-ids: